﻿using System;
using Sinacor.Infra.Common;
using System.Collections.Generic;
using Sinacor.Servico.Bovespa.Ordens.BusinessEntity;
using Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Response;

namespace Sinacor.Servico.Bovespa.Ordens.Service.ServiceImplementation.Translator
{
    public partial class TranslateADRAndADRResponse : 
        BaseTranslator<DataContract.Response.ADRResponse,
                       BusinessEntity.ADR,
                       List<DataContract.Response.ADRResponse>,
                       List<BusinessEntity.ADR>>
    {
        public override DataContract.Response.ADRResponse Translate(BusinessEntity.ADR from)
        {
            DataContract.Response.ADRResponse to = new DataContract.Response.ADRResponse();
            to.CodigoNegocio = from.CodigoNegocio;
            to.CodigoCliente = from.CodigoCliente;
            to.CodigoCustodianteADR = from.CodigoCustodianteADR;
            to.DigitoCliente = from.DigitoCliente;
            return to;
        }



    }
}
